package com.quanyan.user.model.vo.response;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by Administrator on 2016/7/1.
 */
public class RespUserTreasureBox implements Serializable{

    private static final long serialVersionUID = 3784547465216315266L;
    /**
     * 系统宝箱id
     */
    private Integer boxId = 0;

    /**
     * 用户宝箱id
     */
    private Integer userBoxId = 0;

    /**
     * 宝箱名字
     */
    private String boxName = "";

    /**
     * 宝箱状态
     */
    private Byte status = 0;

    /**
     * 宝箱等级 1 2 3
     */
    private Integer level = 1;

    /**
     * 奖励鸟蛋数量
     */
    private BigDecimal rewardEggShellNum = new BigDecimal(0);

    /**
     * 规则：打开箱子需要 累积的蛋壳数量
     */
    private BigDecimal ruleEggShellsNum = new BigDecimal(0);


    public Integer getBoxId() {
        return boxId;
    }

    public void setBoxId(Integer boxId) {
        this.boxId = boxId;
    }

    public Integer getUserBoxId() {
        return userBoxId;
    }

    public void setUserBoxId(Integer userBoxId) {
        this.userBoxId = userBoxId;
    }

    public String getBoxName() {
        return boxName;
    }

    public void setBoxName(String boxName) {
        this.boxName = boxName;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public BigDecimal getRewardEggShellNum() {
        return rewardEggShellNum;
    }

    public void setRewardEggShellNum(BigDecimal rewardEggShellNum) {
        this.rewardEggShellNum = rewardEggShellNum;
    }

    public BigDecimal getRuleEggShellsNum() {
        return ruleEggShellsNum;
    }

    public void setRuleEggShellsNum(BigDecimal ruleEggShellsNum) {
        this.ruleEggShellsNum = ruleEggShellsNum;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RespUserTreasureBox that = (RespUserTreasureBox) o;

        return !(level != null ? !level.equals(that.level) : that.level != null);

    }

    @Override
    public int hashCode() {
        return level != null ? level.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "RespUserTreasureBox{" +
                "boxId=" + boxId +
                ", userBoxId=" + userBoxId +
                ", boxName=" + boxName +
                ", status=" + status +
                ", level=" + level +
                ", rewardEggShellNum=" + rewardEggShellNum +
                ", ruleEggShellsNum=" + ruleEggShellsNum +
                '}';
    }
}
